﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DiskInspector.Model.MetaDataAttributes;

namespace DiskInspector.Model.FileRecordStructure
{
    public class AttributeHead
    {
        [FieldLength(ByteLength = 4)]
        public virtual byte[] AttributeType { get; set; }

        [FieldLength(ByteLength = 4)]
        public virtual int AttributeLength { get; set; }

        [FieldLength(ByteLength = 1)]
        public virtual byte NonResidentFlag { get; set; }

        [FieldLength(ByteLength = 1)]
        public virtual byte AttributeNameLength { get; set; }

        [FieldLength(ByteLength = 2)]
        public virtual short AttributeNameOffset { get; set; }

        public virtual short AttributeContentOffset { get; set; }

        public byte[] AttributeName { get; set; }
    }
}